<div class="bebes index">
	<h2><?php echo __('Crianças'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>Nome</th>
			<th>Data de Nascimento</th>
			<th>Sexo</th>
			<th>Signo</th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php $linha = 1; ?>
	<?php foreach ($bebes as $bebe): ?>
	
	<?php
		if($linha%2==0){
			$class="impar";
		} else {
			$class="par";
		}
		$linha++;
	?>
	<tr <?php echo "class='$class'" ?>>
		<td><?php echo h($bebe['bebes']['nome']); ?>&nbsp;</td>
		<td><?php echo h($bebe['bebes']['nascimento']); ?>&nbsp;</td>
		<td><?php echo h($bebe['bebes']['sexo']); ?>&nbsp;</td>
		<td><?php echo h($bebe['bebes']['signo']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $bebe['bebes']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $bebe['bebes']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $bebe['bebes']['id']), null, __('Are you sure you want to delete # %s?', $bebe['bebes']['id'])); ?>
			<?php echo $this->Html->link(__('Gráfico'), array('controller' => 'graphs', 'action' => 'index', $bebe['bebes']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>

</div>